using UnityEngine;
using QFramework;

namespace Projectsurviva
{
	public partial class Coin : ViewController
	{
        private void OnTriggerEnter2D(Collider2D collision)
        {
            if (collision.gameObject.GetComponent<Collectcircle>())
            {
                this.DestroyGameObjGracefully();
                Global.Coin.Value++;
                AudioKit.PlaySound("coin");
            }
        }
    }
}
